home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_actor_re.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
1KB
|
64 lines
# Jedi Knight Cog Script
#
# ACTOR_RE.COG
#
# ACTOR Script - Remote
#
# [CR]
#
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
#
# ========================================================================================
symbols
message killed
message skill
message damaged
flex damageAmount local
flex damageType local
flex totalDamage local
end
# ========================================================================================
code
killed:
return;
# ........................................................................................
skill:
ReturnEx(-1);
return;
# ........................................................................................
damaged:
damageAmount = GetParam(0);
damageType = GetParam(1);
totalDamage = damageAmount;
if (BitTest(damageType, 0x01))
{
totalDamage = damageamount * 0.5;
}
if (BitTest(damageType, 0x02))
{
totalDamage = damageAmount * 0.5;
}
ReturnEx(totalDamage);
return;
end